<%--
  Created by IntelliJ IDEA.
  User: 莫
  Date: 2017/12/19
  Time: 12:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="css/back-style.css">
    <link href="css/bootstrap.min.css" rel="stylesheet">

</head>
<body>
<nav class="navbar navbar-default">
    <div class="navbar-header">
        <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-exl-collapse"><i class="fa fa-bars"></i></button>
         <a class="navbar-brand" href="#">后台管理</a>
    </div>
    <div class="collapse navbar-collapse navbar-exl-collapse">
        <ul class="nav navbar-nav">
            <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
            <li><a href="#">Link</a></li>
            <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a href="#">Action</a></li>
                    <li><a href="#">Another action</a></li>
                </ul>
            </li>
        </ul>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-2">
            <a href="NewsManage.jsp" class="list-group-item">新闻管理</a>
            <a href="NewsRelease.jsp" class="list-group-item active">新闻发布</a>
        </div>
        <div class="right-style">
            <div class="col-sm-10">
                <form role="form" class="form-horizontal" action="NewsContent" method="POST" onsubmit="return saveReport();" id="Content_form">
                    <div class="form-group">
                        <label for="headline">标题</label>
                        <input type="text" class="textarea-style form-control" name="headline" placeholder="请输入新闻标题">
                    </div>
                    <div class="form-group">
                        <label for="name">作者</label>
                        <input type="text" class="textarea-style form-control" name="name" placeholder="请输入名称">
                    </div>
                    <div class="form-group">
                        <label for="news-content">内容</label>
                        <textarea class="textarea-style form-control" style="height:500px" name="news-content" id="news-content"></textarea>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-default">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
    function saveReport() {
        alert("提交成功");
        window.open("NewsManage.jsp");
    }
</script>

</body>
</html>